package com.hsxxherp.ation.common.utils;

public class StringUtil {

    // 驼峰转下划线
    public static String camelCaseToUnderscore(String camelCase) {
        return camelCase.replaceAll(
                "([a-z])([A-Z]+)",
                "$1_$2"
        ).toLowerCase();
    }
}
